package com.bdqn.springbootwebsocket.pojo;

import java.util.Set;

public class Message {
    private boolean isSystem;//判断是否是系统消息
    private String fromWhere;//谁发的
    private Set<String> toWhere;//发给谁
    private String content;//消息内容
    private String toUser;//基伯强实乃班中第一人,吸毒界无人能敌,几波家族有此人简直无敌于世间,傲视天下季波哥

    public String getToUser() {
        return toUser;
    }

    public void setToUser(String toUser) {
        this.toUser = toUser;
    }

    public boolean isSystem() {
        return isSystem;
    }

    public void setSystem(boolean system) {
        isSystem = system;
    }

    public String getFromWhere() {
        return fromWhere;
    }

    public void setFromWhere(String fromWhere) {
        this.fromWhere = fromWhere;
    }

    public Set<String> getToWhere() {
        return toWhere;
    }

    public void setToWhere(Set<String> toWhere) {
        this.toWhere = toWhere;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Message() {
    }

    public Message(boolean isSystem, String fromWhere, Set<String> toWhere, String content) {
        this.isSystem = isSystem;
        this.fromWhere = fromWhere;
        this.toWhere = toWhere;
        this.content = content;
    }

}
